package com.toolset.Bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * 个人信息类 实体类
 */

public class User extends DataSupport implements Serializable {
    private long id;  //数据库中的id
    private String userId;  //z
    private String userName;  //姓名
    private String userPassword;  //密码
    private String userSex;  //性别
    private String userMail;  //邮箱

    public User() {
    }

    public User(String userPassword, String userId) {
        this.userPassword = userPassword;
        this.userId = userId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserMail() {
        return userMail;
    }

    public void setUserMail(String userMail) {
        this.userMail = userMail;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userMail='" + userMail + '\'' +
                '}';
    }
}
